package com.cq.hd.product.po;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 红包流水表
 * </p>
 *
 * @author mYunYu
 * @since 2023-11-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_active_red_packet_bill")
@ApiModel(value="TbActiveRedPacketBillPo对象", description="红包流水表")
public class TbActiveRedPacketBillPo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "商家id")
    @TableField("business_id")
    private Long businessId;

    @ApiModelProperty(value = "活动id")
    @TableField("active_id")
    private Long activeId;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "订单id")
    @TableField("order_id")
    private Long orderId;

    @ApiModelProperty(value = "红包id")
    @TableField("red_packet_id")
    private Long redPacketId;

    @ApiModelProperty(value = "红包金额")
    @TableField("amt")
    private BigDecimal amt;

    @ApiModelProperty(value = "状态(1-未使用，2-已使用，3-已核销，4-已过期)")
    @TableField("state")
    private Integer state;

    @ApiModelProperty(value = "红包有效期（领取几天内有效）")
    @TableField("valid_day")
    private Integer validDay;

    @ApiModelProperty(value = "领取时间")
    @TableField("receive_time")
    private LocalDateTime receiveTime;

    @ApiModelProperty(value = "使用时间")
    @TableField("use_time")
    private LocalDateTime useTime;

    @ApiModelProperty(value = "过期时间")
    @TableField("expire_time")
    private LocalDateTime expireTime;

    @ApiModelProperty(value = "创建者")
    @TableField("create_by")
    private Integer createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新者")
    @TableField("update_by")
    private Integer updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "删除状态:0-正常，1-已删除")
    @TableField("del_state")
    private Integer delState;

    @ApiModelProperty(value = "红包类型：1新用户红包 2积分兑换的优惠券")
    @TableField("red_packet_type")
    private Integer redPacketType;

    @ApiModelProperty(value = "满多少可以使用：0表示无门槛")
    @TableField("full_amount")
    private BigDecimal fullAmount;

    @ApiModelProperty(value = "红包标题")
    @TableField("title")
    private String title;
}
